package person.bing.fbcloud.brushQuestions.singleton;

/**
 * 饿汉模式
 *
 * @author: mengfanbing
 * @date: 2020/5/26 17:06
 */
public class HungryMode {
    private static HungryMode hungryMode = new HungryMode();
    private HungryMode(){}

    public static HungryMode getInstance(){
        if (hungryMode == null){
            hungryMode = new HungryMode();
        }
        return hungryMode;
    }
}
